package cn.liulin.llxianjie.controller;

import cn.liulin.llcommon.pojo.response.ResObj;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * cn.liulin.llxianjie.controller$
 *
 * @author ll
 * @date 2022-01-17 16:45:37
 **/
@RestController
@RequestMapping("/xianjie/balance")
public class XianJieServerPortBalanceController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/getPort")
    public ResObj getPort() {
        return ResObj.ok("访问port为：" + port);
    }
}
